package com.example.light.web.meeting.vo;

import com.example.light.common.result.CodeMsg;

/**
 * @Author: lizhilong
 * @Description:
 * @Date: Created in 21:18 2018/8/27
 * @Modified By:
 */
public class MeetListVO<T> {
    private String msg;
    private int code;
    private T data;
    private long total;

    public MeetListVO(T data) {
        this.data = data;
    }

    public MeetListVO(T data, long total) {
        this.data = data;
        this.total = total;
    }

    public MeetListVO(String msg, int code, T data, long total) {
        this.msg = msg;
        this.code = code;
        this.data = data;
        this.total = total;
    }

    public MeetListVO() {
    }

    public MeetListVO(CodeMsg codeMsg) {
        this.msg = codeMsg.getMsg();
        this.code = codeMsg.getCode();
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
